<%@page language="java" import="com.scalar.chiptrack.utils.ConfigManager"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>
<chiptrack:checkLogon sourcePage="/jsp/operations/process_flow.jsp"/>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>
<META content="MSHTML 5.50.4807.2300" name=GENERATOR>
<script src="<%=chipTracContext%>/jsp/includes/scripts/quickSearch.js"></script>

<SCRIPT language="JavaScript1.2">
window.onload = init;

    function init()
    {
        qs_1 = new QuickSearch(document.prrocessFlowForm['productId'], document.prrocessFlowForm.qs1, false);
    }
    function submitPage(tempAction)
    {
        var pa=document.getElementById("message");
        var x = document.prrocessFlowForm.productId;
        if( x.value == "Select Product" || x.value == "" )
        {
            pa.innerHTML = "<li>Please Select The Product";
            return;
        }
        document.prrocessFlowForm.productId.value = x.value;
        document.prrocessFlowForm.action.value = 'PROCESS_FLOW';
        document.prrocessFlowForm.submit();
    }
    function loadProducts(baseProductCtrl)
    {
        form = document.prrocessFlowForm;
        form.action.value = 'search';
        form.submit();
    }

</SCRIPT>
</HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

<!-- Top Header Start-->
<%@include file="/jsp/includes/header.jsp"  %>
<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border="0">
  <TBODY>
  <TR>
	<td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->

<%@include file="/jsp/operations/operations_menu.jsp" %>
</TD>
<!-- end of the side navigations -->
<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=500 border=0>
<BR>
<!-- from here your body starts -->
<html:form name="prrocessFlowForm" type="com.scalar.chiptrack.operations.process.forms.WipProcessFlowForm" action="/wipProcessFlow.do">
<center><span class="NArialW">Wip Process View</span></center>
<img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10>
<img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10>
<table border="0" width="95%" align=center>
 <tr>
     <td>
	    <table border="0" width="75%" align=center>
            <tr><td colspan="5" align="left" class='NArialL'><FONT id="message" styleClass="NArialL" color='FF0000'></FONT></TD></TR>
            <tr><td ><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=5></td></tr>
            <tr>
                <td width="20%" class="NArialL">&nbsp;</td>
                <td width="15%" class="NArialL">&nbsp;</td>
                <td width="5%">&nbsp;</td>
                <td width="22%" class="NArialL">Quick Search:</td>
                <td width="30%"><input type="text" name="qs1" class="txfield" size='23' onkeyup='quickSearch(qs_1)'/></td>
             </tr>
            <tr>
                 <td width="20%" class="NArialL">Base Product:</td>
                 <td width="15%" class="NArialL">
                        <nested:select property="baseProductId" styleClass="txfield" onchange="javascript:loadProducts(this)">
                            <option value="">Select Base Product</option>
                            <html:options collection="baseProducts" property="value" labelProperty="label"/>
                        </nested:select>
                </td>
                <td width="5%">&nbsp;</td>
                <td width="22%" class="NArialL">FG Part Number:</td>
                 <td width="30%">
                        <nested:select property="productId" styleClass="txfield">
                            <option value="">Select Product</option>
                            <html:options collection="products" property="productId" labelProperty="partNumber"/>
                        </nested:select>
                </td>
             </tr>
             <tr>
                <td colspan=2><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=40></td>
             </tr>
             <tr>
                <td colspan=5 align=center>
                         <a href="javascript:submitPage()">
                         <img border="0" src="<%=chipTracContext%>/jsp/includes/images/submit.gif" width="53" height="17" onmouseover="window.status='Click to View Wip Process';return true" onmouseout="window.status='';return true" title="Click here to View Wip Process"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <a href="javascript:document.prrocessFlowForm.reset();">
                        <img src="<%=chipTracContext%>/jsp/includes/images/reset.gif" border='0' onmouseover="window.status='Click to Reset';return true" onmouseout="window.status='';return true" title="Click here to Reset"></a>
                </td>
     	     </tr>
  	    </table>
     </td>
 </tr>
 <tr>
     <td><img height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></td>
 </tr>
 <tr>
     <td><img height=10 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></td>
 </tr>

 </table>

<input type="hidden" name="action" value="">
<!-- till here -->
<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>
</html:form>
<!-- Footer starts here -->
<%@include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->
</BODY>
</HTML>